package push;

import helper.ImageData;
import helper.ImageProcessor;
import framework.filters.AbstractPushFilter;
import framework.pipes.PushPipe;

/**
 * Apply the overlay operation on the given image
 * 
 * @author Wetzel & Rusch
 * 
 */
public class OverlayFilter extends AbstractPushFilter<ImageData> {

	public OverlayFilter(PushPipe<ImageData> pushPipe) {
		super(pushPipe);
	}

	@Override
	public void doIt() {
		ImageProcessor ip = ImageProcessor.getInstance();
		m_data.setRoiImage(ip.getOverlay(m_data.getOriginalImage(),
				m_data.getRoiImage()));
	}

}
